<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons.jsp" %>
<html>
	<body>
		<ul id="tempul">
			<li id="weibo_${param.weiboid }">
				<div id="weibo_left">
					<img src="${ctx }/avatar/${param.avatar }" width="50" />
				</div>
				<div id="weibo_right">
					<div id="weibo_content">
						<a href="#">${param.nick }</a>：${param.content }${param.allComments }
						<div class="picture">
							<a href="${ctx }/uploads/${param.picture }" class="thickbox">
								<img src="${ctx }/uploads/${param.picture }" title="查看大图"/>
							</a>
						</div>
					</div>
<!--				转发的原始微博	-->
					<c:if test="${param.forwardid ne 0 }">
					<div class="triangle forward_triangle"></div>
					<div class="clear"></div>
					<div id="forward" class="forward_wrap">
						<div id="forward_weibo">
							<c:choose>
								<c:when test="${param.sourceWeibo eq 0 }">
									此微博已被原作者删除。
								</c:when>
								<c:otherwise>
									<div id="forward_weibo_content">
										<a href="#">${param.fnick }</a>：${param.fcontent }
										<div class="picture">
											<a href="${ctx }/uploads/${param.fpicture }" class="thickbox">
												<img src="${ctx }/uploads/${param.fpicture }" title="查看大图"/>
											</a>
										</div>
									</div>
									<div id="forward_weibo_info_left">
										${param.ftime }
										来自<a href="http://${param.fclient }" target="_blank">${param.fclient }</a>
									</div>
									<div id="forward_weibo_info_right">
										<a href="${ctx }/forward.jsp?height=270&width=450&modal=true&weiboid=${param.fweiboid }" class="thickbox">转发</a> 
										<a href="javascript:query_comment('${param.fweiboid }');" class="comment_btn">评论</a>
									</div>
								</c:otherwise>
							</c:choose>
						</div>
						<div class="clear"></div>
					</div>
					</c:if>
<!--				/转发的原始微博	-->
					<div id="weibo_info">
						<div id="weibo_info_left">
							${param.time }
							来自<a href="http://${param.client }" target="_blank">${param.client }</a>
						</div>
						<div id="weibo_info_right">
							<c:if test="${sessionScope.user.id == param.userid }">
							<a href="javascript:delete_weibo('${param.weiboid }')">删除</a>
							</c:if>
							<a href="${ctx }/forward.jsp?height=270&width=450&modal=true&weiboid=${param.weiboid }" class="thickbox">转发</a> 
							<a href="#">收藏</a>
							<a href="javascript:query_comment('${param.weiboid }');" class="comment_btn">评论</a>
						</div>
						<div class="clear"></div>
					</div>
					<div class="comment" id="${param.weiboid }">
						<div class="triangle comment_triangle"></div>
						<div class="clear"></div>
						<div class="comment_wrap">
							<div id="comment_content">
								<textarea class="weibo_comment" id="comment_content_${param.weiboid }" rows="1" cols="40"></textarea>
								<a href="javascript:add_comment('${param.weiboid }');" class="add_comment_btn">评论</a>
							</div>
							<div id="commentlist">
								<ul id="commentlist_${param.weiboid }"></ul>
							</div>
						</div>
					</div>
				</div>
				<div class="clear"></div>
			</li>
		</ul>
	</body>
</html>
